package com.ruoyi.project.gxgw_modules.vipUsers.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 会员用户表 cxj_vip_users
 *
 * @author ruoyi
 * @date 2019-01-18
 */
public class VipUsers extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 会员序号
     */
    @Excel(name = "用户序号")
    private Integer userId;
    /**
     * 用户唯一检验标识
     */
    @JsonIgnore
    private String token;
    /**
     * 用户昵称
     */
    @Excel(name = "昵称")
    private String userNick;
    /**
     * 用户头像
     */
    private String userHead;
    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String userPhone;
    /**
     * 用户密码
     */
    @Excel(name = "密码")
    private String userPw;
    /**
     * 等级
     */
    @JsonIgnore
    private Integer levelId;
    /**
     * 注册时间
     */
    @Excel(name = "注册时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String userName;
    /**
     * 性别
     */
    @Excel(name = "用户性别", readConverterExp = "1=男,2=女")
    private Integer userSex;
    /**
     * 身份认证状态；0 未认证，1 已认证
     */
    @Excel(name = "身份认证状态", readConverterExp = "0=未认证,1=已认证")
    private Integer cardState;
    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String userCard;
    /**
     * 身份证正面照片
     */
    private String cardTimg;
    /**
     * 身份证反面照片
     */
    private String cardFimg;
    /**
     * 身份认证时间
     */
    @Excel(name = "身份认证时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date cardTime;
    /**
     * 审核状态：用户注册信息提交，默认0（未审核),1通过，2未通过
     */
    @Excel(name = "用户注册审核", readConverterExp = "0=未审核,1=审核通过,2=审核不通过")
    private Integer checkState;
    /**
     * 身份认证审核人
     */
    @JsonIgnore
    private Integer checkAdmin;
    /**
     * 身份认证审核时间
     */
    @Excel(name = "身份认证审核时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkDate;
    /**
     * 宠物状态（1或0)
     */
    @Excel(name = "宠物状态", readConverterExp = "0=未绑定,1=已绑定")
    private Integer petState;
    /**
     * 宠物创建时间
     */
    @Excel(name = "宠物创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date petTime;
    /**
     * 宠物认证审核状态：0未审核，1 审核通过，2审核未通过
     */
    @Excel(name = "宠物认证审核状态", readConverterExp = "0=未审核,1=审核通过,2=审核不通过")
    private Integer pcheckState;
    /**
     * 保证金缴纳状态：0未缴纳，1 已缴纳，2，保证金不足
     */
    @Excel(name = "保证金缴纳状态", readConverterExp = "0=未缴纳,1=已缴纳,2=保证金不足")
    private Integer bailState;
    /**
     * 保证金余额
     */
    @Excel(name="保证金余额")
    private Float freeTotal;
    /**
     * 消费余额
     */
    //保证前端返回正确的字段
    @Excel(name="消费余额")
    private Float yTotal;
    /**
     * 保证金缴纳时间
     */
    @Excel(name = "保证金缴纳时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date bailTime;
    /**
     * 是否有优惠券
     */
    @Excel(name = "是否有优惠券", readConverterExp = "0=无,1=有")
    private Integer isYhq;
    /**
     * 是否有红包
     */
    @Excel(name = "是否有红包", readConverterExp = "0=无,1=有")
    private Integer isHb;
    /**
     * 是否有时长卡
     */
    @Excel(name = "是否有时长卡", readConverterExp = "0=无,1=有")
    private Integer isKj;
    /**
     * 删除标记
     */
    @JsonIgnore
    private String delFlag;

    public Float getyTotal() {
        return yTotal;
    }

    public void setyTotal(Float yTotal) {
        this.yTotal = yTotal;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getUserHead() {
        return userHead;
    }

    public void setUserHead(String userHead) {
        this.userHead = userHead;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserPw() {
        return userPw;
    }

    public void setUserPw(String userPw) {
        this.userPw = userPw;
    }

    public Integer getLevelId() {
        return levelId;
    }

    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public Integer getCardState() {
        return cardState;
    }

    public void setCardState(Integer cardState) {
        this.cardState = cardState;
    }

    public String getUserCard() {
        return userCard;
    }

    public void setUserCard(String userCard) {
        this.userCard = userCard;
    }

    public String getCardTimg() {
        return cardTimg;
    }

    public void setCardTimg(String cardTimg) {
        this.cardTimg = cardTimg;
    }

    public String getCardFimg() {
        return cardFimg;
    }

    public void setCardFimg(String cardFimg) {
        this.cardFimg = cardFimg;
    }

    public Date getCardTime() {
        return cardTime;
    }

    public void setCardTime(Date cardTime) {
        this.cardTime = cardTime;
    }

    public Integer getCheckState() {
        return checkState;
    }

    public void setCheckState(Integer checkState) {
        this.checkState = checkState;
    }

    public Integer getCheckAdmin() {
        return checkAdmin;
    }

    public void setCheckAdmin(Integer checkAdmin) {
        this.checkAdmin = checkAdmin;
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public Integer getPetState() {
        return petState;
    }

    public void setPetState(Integer petState) {
        this.petState = petState;
    }

    public Date getPetTime() {
        return petTime;
    }

    public void setPetTime(Date petTime) {
        this.petTime = petTime;
    }

    public Integer getPcheckState() {
        return pcheckState;
    }

    public void setPcheckState(Integer pcheckState) {
        this.pcheckState = pcheckState;
    }

    public Integer getBailState() {
        return bailState;
    }

    public void setBailState(Integer bailState) {
        this.bailState = bailState;
    }

    public Float getFreeTotal() {
        return freeTotal;
    }

    public void setFreeTotal(Float freeTotal) {
        this.freeTotal = freeTotal;
    }
	/*public void setYTotal(Float yTotal)
	{
		this.yTotal = yTotal;
	}*/

    public Date getBailTime() {
        return bailTime;
    }

    /*public Float getYTotal()
    {
        return yTotal;
    }*/
    public void setBailTime(Date bailTime) {
        this.bailTime = bailTime;
    }

    public Integer getIsYhq() {
        return isYhq;
    }

    public void setIsYhq(Integer isYhq) {
        this.isYhq = isYhq;
    }

    public Integer getIsHb() {
        return isHb;
    }

    public void setIsHb(Integer isHb) {
        this.isHb = isHb;
    }

    public Integer getIsKj() {
        return isKj;
    }

    public void setIsKj(Integer isKj) {
        this.isKj = isKj;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("token", getToken())
                .append("userNick", getUserNick())
                .append("userHead", getUserHead())
                .append("userPhone", getUserPhone())
                .append("userPw", getUserPw())
                .append("levelId", getLevelId())
                .append("createTime", getCreateTime())
                .append("userName", getUserName())
                .append("userSex", getUserSex())
                .append("cardState", getCardState())
                .append("userCard", getUserCard())
                .append("cardTimg", getCardTimg())
                .append("cardFimg", getCardFimg())
                .append("cardTime", getCardTime())
                .append("checkState", getCheckState())
                .append("checkAdmin", getCheckAdmin())
                .append("checkDate", getCheckDate())
                .append("petState", getPetState())
                .append("petTime", getPetTime())
                .append("pcheckState", getPcheckState())
                .append("bailState", getBailState())
                .append("freeTotal", getFreeTotal())
                .append("yTotal", getyTotal())
                .append("bailTime", getBailTime())
                .append("isYhq", getIsYhq())
                .append("isHb", getIsHb())
                .append("isKj", getIsKj())

                .toString();
    }

}
